package cn.houseProperty.service.impl;

import cn.entity.Do.Bunk;
import cn.houseProperty.dao.BunkDao;
import cn.houseProperty.service.IbunkService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class BunkService implements IbunkService {
    @Autowired
    private BunkDao bunkDao;
    @Override
    public List<Bunk> selectByRid(String rid) {
        return bunkDao.selectByRid(rid);
    }

    @Override
    public List<Bunk> selectBySid(String rid) {
        return null;
    }

    @Override
    public Bunk selectByPrimaryKey(String code) {
        return bunkDao.selectByPrimaryKey(code);
    }

    @Override
    public int updateByPrimaryKey(Bunk record) {
        return  bunkDao.updateByPrimaryKey(record);

    }

    @Override
    public List<Bunk> selectAll() {
        return bunkDao.selectAll();
    }
}
